#include<pthread.h>
namespace my_cond
{
    class mycond
    {
    public:
        mycond()
        {
            pthread_cond_init(&_cond,nullptr);
        }
        void cond_signal()
        {
            pthread_cond_signal(&_cond);
        }
        void cond_broadcast()
        {
            pthread_cond_broadcast(&_cond);
        }
        ~mycond()
        {
            pthread_cond_destroy(&_cond);
        }
    private:
        pthread_cond_t _cond;
    };
}